package org.chen.common;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("chat_history")
public class ChatHistory extends Model<ChatHistory> {
    @TableId(value = "objectId",type = IdType.ASSIGN_ID)
    private String objectId;
    @TableField("message")
    private String message;
    @TableField("state")
    private Integer state;
    @TableField("userId")
    private String userId;
    @TableField(fill = FieldFill.INSERT_UPDATE,value = "updatedAt")
    private LocalDateTime updatedAt;
    @TableField(fill = FieldFill.INSERT,value = "createdAt")
    private LocalDateTime createdAt;

}
